home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / toolkit.jar / content / global / bindings / splitter.xml < prev    next >
Encoding:
Extensible Markup Language  |  2006-03-02  |  906 b   |  34 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings id="splitterBindings"
  4.    xmlns="http://www.mozilla.org/xbl"
  5.    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  6.  
  7.   <binding id="splitter" extends="xul:splitter">
  8.     <resources>
  9.       <stylesheet src="chrome://global/skin/splitter.css"/>
  10.     </resources>
  11.   </binding>
  12.  
  13.   <binding id="grippy" extends="xul:button">
  14.     <resources>
  15.       <stylesheet src="chrome://global/skin/splitter.css"/>
  16.     </resources>
  17.     <handlers>
  18.       <handler event="command">
  19.         <![CDATA[
  20.           var splitter = this.parentNode;
  21.           if (splitter) {
  22.             var state = splitter.getAttribute("state");
  23.             if (state == "collapsed")
  24.               splitter.setAttribute("state", "open");
  25.             else
  26.               splitter.setAttribute("state", "collapsed");
  27.           }
  28.         ]]>
  29.       </handler>
  30.     </handlers>
  31.   </binding>
  32.  
  33. </bindings>
  34.